<?php /* Smarty version 2.6.18, created on 2010-03-09 20:38:23
         compiled from tankinspectionlistsub.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'tankinspectionlistsub.tpl', 16, false),)), $this); ?>
<div>
	<table border="0" width="100%">
	<tr><td colspan="6"><hr></td></tr>
	<tr>
		<?php if ($this->_tpl_vars['inspections'][0]['tank_name'] <> ''): ?>
			<td align="center" style="padding-left: 5pt; padding-right: 5pt">Show</td>
		<?php endif; ?>
		<td>Tank</td>
		<td align="right">Date Inspected</td>
		<td>Result</td>
		<td>Remarks</td>
		<td align="right">Next Inspection</td>
	</tr>
	<tr><td colspan="6"><hr></td></tr>
	<?php $_from = $this->_tpl_vars['inspections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['inspection']):
?>
	<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
		<?php if ($this->_tpl_vars['inspection']['tank_name'] <> ''): ?>
			<td align="center"><a href="javascript:void(0);" onclick="editTankInspection(<?php echo $this->_tpl_vars['inspection']['tank_inspection_id']; ?>
);">Show</a></td>
		<?php endif; ?>
		<td><?php echo $this->_tpl_vars['inspection']['tank_name']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inspection']['date_inspected']; ?>
</td>
		<td><?php echo $this->_tpl_vars['inspection']['result']; ?>
</td>
		<td><?php echo $this->_tpl_vars['inspection']['remarks']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['inspection']['date_next_inspection']; ?>
</td>
	</tr>
	<?php endforeach; endif; unset($_from); ?>
	</table>
</div>